﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width">
  <meta name="keywords" content="别墅工场-用户浏览记录">
  <meta name="description" content="别墅工场-用户关注图纸">
  <title>浏览记录</title>
  <link rel="shortcut icon" href="/index/img/bieshu_logo.png" type="image/vnd.microsoft.icon">
  <link rel="stylesheet" href="/index/css/style.css">
  <link rel="stylesheet" href="/index/css/responsive.css" />
  <script type="text/javascript" src="/public/jquery-1.12.3.min.js"></script>
  <script type="text/javascript" src="/index/js/jquery.slide.js"></script>
  <script type="text/javascript" src="/index/js/addons.js" ></script>
  <!--[if lt IE 9]>
  <script src="/index/js/html5.js"></script>
  <![endif]-->
</head>
<body style="background: #f8f8f8;" onkeydown="on_return()">
<div class="Uppermost">
  <div class="wrapper">
    <div class="clearfix">
      欢迎光临湖南森态建筑设计有限责任公司！
      {empty name='user_info.user_id'}<div class="fr"><a href="javascript:;" class="user_login">登陆<span>|</span>注册</a></div>{/empty}{notempty name='user_info.user_id'}<div class="fr"><a href="javascript:;">别墅工场欢迎您！</a></div>{/notempty}
    </div>
    <p><a href="/about">关于我们</a><span>|</span>{empty name='user_info.user_id'}<a href="javascript:;" class="user_login">个人中心</a>{/empty}{notempty name='user_info.user_id'}<a href="/userInfo" >个人中心</a>{/notempty}<span>|</span><a href="/sitemap.html">网站地图</a></p>
  </div>
</div>
<div class="header">
  <div class="wrapper">
    <div class="img fl">
      <a href="#">
        <img src="/index/img/u33.png" />
      </a>
    </div>
    <div class="nav fl">
      <ul class="clearfix">
        <li  class="on"><a href="/">网站首页</a></li>
        <li><a href="/bieshusheji">别墅图纸</a></li>
        <li><a href="/tuandui">设计团队</a></li>
        <li><a href="/dingzhi">私人定制</a></li>
        <li><a href="/ordercase">案例展示</a></li>
        <li><a href="/news">建房知识</a></li>
      </ul>
    </div>
    <div class="fr inp">
      <label>
        <form>
          <input type="text" id="keyword_name" placeholder="输入图纸编号或是关键字"/>
        </form>
        <button id="searchButton" onclick="search()"></button>
      </label>
    </div>
  </div>
</div>
<!--conter -->
<div class="cut wrapper">
  <a href="/">首页</a><span>></span>用户中心
</div>
<div class="contert-box wrapper clearfix">
  <div class="left-box fl">
    <div class="box">
      <h3>用户中心</h3>
      <ul>
        <li><a href="/orderRecord"><img src="/index/img/u5446.png" class="a" /><img src="/index/img/u5446_on.png" class="b" />我的订单</a></li>
        <!--<li><a href="#"><img src="/index/img/u5444.png" class="a"/><img src="/index/img/u5444_on.png" class="b"/>我的收藏</a></li>-->
        <li><a href="/browseRecord"><img src="/index/img/u5442.png" class="a"/><img src="/index/img/u5442_on.png" class="b"/>浏览记录</a></li>
        <li><a href="/receiverAddress"><img src="/index/img/u5452.png" class="a"/><img src="/index/img/u5452_on.png" class="b"/>收货地址</a></li>
        <li><a href="/userInfo"><img src="/index/img/u5458.png" class="a"/><img src="/index/img/u5458_on.png" class="b"/>个人资料</a></li>
      </ul>
    </div>
    <div class="box">
      <h3>客服热线</h3>
      <div class="text">
        <div class="tel">
          <h5>订购/咨询热线：</h5>
          <h4>400-9020-868：</h4>
          <h5>售后服务热线：</h5>
          <h4>0731-88576861：</h4>
        </div>
      </div>
    </div>
    <div class="box">
      <h3>客服热线</h3>
      <div class="qr">
        <img style="width: 150px;" src="/index/img/bieshulogo.jpg" />
      </div>
    </div>
  </div>
  <div class="right-box fr">
    <h6>浏览记录</h6>
    <div class="table table2" >
      <table>
        <tr>
          <th>编号</th>
          <th>商品</th>
          <th>价格</th>
          <th class="width">标题</th>
          <th>时间</th>
          <th>操作</th>
        </tr>
        {volist name='browseList' id='info'}
        <tr>
          <td>{$info.no}</td>
          <td><img src="{$info.cover}" /></td>
          <td><span>{$info.price}元</span></td>
          <td class="width">{$info.topic}</td>
          <td>{$info.create_time}</td>
          <td onclick="deleteBrowse({$info.browse_id})">删除</td>
        </tr>
        {/volist}
      </table>
      <div class="pages pages2">
        <!-- 分页 -->
        <ul>
          {$page}
        </ul>
      </div>
    </div>
  </div>
</div>
<!--conter end-->
<!--footer -->
{include file="/public/bottom" /}
<!--footer end-->
{include file="public/comscript" /}
</body>
</html>
<script>
    __HOME__ = "http://"+window.location.host+"/";
    //删除地址
    function deleteBrowse(browse_id) {
        layer.confirm('确定要删除该浏览记录吗吗？', {
            area:["300px","180px"],
            btn: ['确定', '取消']
            ,btn2: function(index, layero){
                //按钮【按钮二】的回调
            }
        },function(index){
            //按钮【按钮一】的回调
            $.ajax({
                type :"POST",
                url : __HOME__+"deleteBrowse",
                data:{
                    "browse_id":browse_id,
                },
                async : true,
                dataType:'json',
                success : function(result) {
                    window.location.href = __HOME__+"browseRecord";
                },
                error : function() {
                    layer.alert('当前网络可能较差请稍后再试!',{icon: ""},function(index){
                        layer.close(index);
                    });
                }
            });
        });
    }
</script>
